package com.nf.test;

import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

public class App {
    public static void main(String[] args) {
//        StudentDao studentDao = new StudentDaoImpl();
//        Student student = studentDao.findStudentById(1);
//        System.out.println(student);

        SqlSessionFactory factory = null;
        SqlSession sqlSession = factory.openSession();
        StudentDao studentDao = sqlSession.getMapper(StudentDao.class);
        Student student = studentDao.findStudentById(1);
        sqlSession.close();
    }
}
